﻿namespace DesignPattern.Models
{
    /// <summary>
    /// 设计模式类型枚举
    /// </summary>
    public enum PatternType
    {
        /// <summary>
        /// 创建型模式
        /// </summary>
        Creational,

        /// <summary>
        /// 结构型模式
        /// </summary>
        Structural,

        /// <summary>
        /// 行为型模式
        /// </summary>
        Behavioral
    }

    /// <summary>
    /// 设计模式模型
    /// </summary>
    public class DesignPatternModel
    {
        /// <summary>
        /// 设计模式名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 设计模式类型
        /// </summary>
        public PatternType Type { get; set; }

        /// <summary>
        /// 设计模式描述
        /// </summary>
        public string Description { get; set; } = string.Empty;

        /// <summary>
        /// 设计模式代码示例
        /// </summary>
        public string CodeExample { get; set; } = string.Empty;

        /// <summary>
        /// 设计模式使用场景
        /// </summary>
        public string UseCases { get; set; } = string.Empty;
    }
}
